EmulateTouchFromMouseEventRequest

data class EmulateTouchFromMouseEventRequest(type: String, x: Int, y: Int, button: MouseButton, timestamp: TimeSinceEpoch?, deltaX: Double?, deltaY: Double?, modifiers: Int?, clickCount: Int?)

Represents request frame that can be used with Input#emulateTouchFromMouseEvent operation call.

Emulates touch event from the mouse event parameters.

See also

Constructors

EmulateTouchFromMouseEventRequest
Link copied to clipboard
fun EmulateTouchFromMouseEventRequest(type: String, x: Int, y: Int, button: MouseButton, timestamp: TimeSinceEpoch? = null, deltaX: Double? = null, deltaY: Double? = null, modifiers: Int? = null, clickCount: Int? = null)

Properties

button
Link copied to clipboard
val button: MouseButton
Mouse button.
clickCount
Link copied to clipboard
val clickCount: Int? = null
Number of times the mouse button was clicked (default: 0).
deltaX
Link copied to clipboard
val deltaX: Double? = null
X delta in DIP for mouse wheel event (default: 0).
deltaY
Link copied to clipboard
val deltaY: Double? = null
Y delta in DIP for mouse wheel event (default: 0).
modifiers
Link copied to clipboard
val modifiers: Int? = null
Bit field representing pressed modifier keys.
timestamp
Link copied to clipboard
val timestamp: TimeSinceEpoch? = null
Time at which the event occurred (default: current time).
type
Link copied to clipboard
val type: String
Type of the mouse event.
x
Link copied to clipboard
val x: Int
X coordinate of the mouse pointer in DIP.
y
Link copied to clipboard
val y: Int
Y coordinate of the mouse pointer in DIP.

Sources

jvm source
Link copied to clipboard